package com.CampusLife.until;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author Administrator
 */
public class DataTime {
    public  String  gettime(){
        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm");//设置日期格式
        String time=df.format(new Date());

        return  time;
    }
    public  String  CNtime(){
        SimpleDateFormat df = new SimpleDateFormat("yyyy年MM月dd日 HH:mm ");//设置日期格式
        String time=df.format(new Date());

        return  time;
    }
}
